package com.statistics.yfdata.entity;

import javax.persistence.*;

/**
 * Created by studio on 2017/4/13.
 */
@Entity
@Table(name = "data_electricity", schema = "yf_data", catalog = "")
public class DataElectricityEntity {
    private int id;
    private long createdAt;
    private String mac;
    private Integer siteMaintenance;
    private Long switchRecoveryTime;
    private String room1Voltage;
    private String room1Current;
    private String room1Power;
    private String room1Electricity;
    private String room1Control;
    private String room1SetPowe;
    private String room1Violation;
    private String room2Voltage;
    private String room2Current;
    private String room2Power;
    private String room2Electricity;
    private String room2Control;
    private String room2SetPowe;
    private String room2Violation;
    private String room3Voltage;
    private String room3Current;
    private String room3Power;
    private String room3Electricity;
    private String room3Control;
    private String room3SetPowe;
    private String room3Violation;
    private String room4Voltage;
    private String room4Current;
    private String room4Power;
    private String room4Electricity;
    private String room4Control;
    private String room4SetPowe;
    private String room4Violation;
    private String room5Voltage;
    private String room5Current;
    private String room5Power;
    private String room5Electricity;
    private String room5Control;
    private String room5SetPowe;
    private String room5Violation;
    private String room6Voltage;
    private String room6Current;
    private String room6Power;
    private String room6Electricity;
    private String room6Control;
    private String room6SetPowe;
    private String room6Violation;
    private String room7Voltage;
    private String room7Current;
    private String room7Power;
    private String room7Electricity;
    private String room7Control;
    private String room7SetPowe;
    private String room7Violation;
    private String room8Voltage;
    private String room8Current;
    private String room8Power;
    private String room8Electricity;
    private String room8Control;
    private String room8SetPowe;
    private String room8Violation;
    private String room9Voltage;
    private String room9Current;
    private String room9Power;
    private String room9Electricity;
    private String room9Control;
    private String room9SetPowe;
    private String room9Violation;
    private String room10Voltage;
    private String room10Current;
    private String room10Power;
    private String room10Electricity;
    private String room10Control;
    private String room10SetPowe;
    private String room10Violation;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "created_at")
    public long getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(long createdAt) {
        this.createdAt = createdAt;
    }

    @Basic
    @Column(name = "mac")
    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    @Basic
    @Column(name = "site_maintenance")
    public Integer getSiteMaintenance() {
        return siteMaintenance;
    }

    public void setSiteMaintenance(Integer siteMaintenance) {
        this.siteMaintenance = siteMaintenance;
    }

    @Basic
    @Column(name = "switch_recovery_time")
    public Long getSwitchRecoveryTime() {
        return switchRecoveryTime;
    }

    public void setSwitchRecoveryTime(Long switchRecoveryTime) {
        this.switchRecoveryTime = switchRecoveryTime;
    }

    @Basic
    @Column(name = "room1_voltage")
    public String getRoom1Voltage() {
        return room1Voltage;
    }

    public void setRoom1Voltage(String room1Voltage) {
        this.room1Voltage = room1Voltage;
    }

    @Basic
    @Column(name = "room1_current")
    public String getRoom1Current() {
        return room1Current;
    }

    public void setRoom1Current(String room1Current) {
        this.room1Current = room1Current;
    }

    @Basic
    @Column(name = "room1_power")
    public String getRoom1Power() {
        return room1Power;
    }

    public void setRoom1Power(String room1Power) {
        this.room1Power = room1Power;
    }

    @Basic
    @Column(name = "room1_electricity")
    public String getRoom1Electricity() {
        return room1Electricity;
    }

    public void setRoom1Electricity(String room1Electricity) {
        this.room1Electricity = room1Electricity;
    }

    @Basic
    @Column(name = "room1_control")
    public String getRoom1Control() {
        return room1Control;
    }

    public void setRoom1Control(String room1Control) {
        this.room1Control = room1Control;
    }

    @Basic
    @Column(name = "room1_set_powe")
    public String getRoom1SetPowe() {
        return room1SetPowe;
    }

    public void setRoom1SetPowe(String room1SetPowe) {
        this.room1SetPowe = room1SetPowe;
    }

    @Basic
    @Column(name = "room1_violation")
    public String getRoom1Violation() {
        return room1Violation;
    }

    public void setRoom1Violation(String room1Violation) {
        this.room1Violation = room1Violation;
    }

    @Basic
    @Column(name = "room2_voltage")
    public String getRoom2Voltage() {
        return room2Voltage;
    }

    public void setRoom2Voltage(String room2Voltage) {
        this.room2Voltage = room2Voltage;
    }

    @Basic
    @Column(name = "room2_current")
    public String getRoom2Current() {
        return room2Current;
    }

    public void setRoom2Current(String room2Current) {
        this.room2Current = room2Current;
    }

    @Basic
    @Column(name = "room2_power")
    public String getRoom2Power() {
        return room2Power;
    }

    public void setRoom2Power(String room2Power) {
        this.room2Power = room2Power;
    }

    @Basic
    @Column(name = "room2_electricity")
    public String getRoom2Electricity() {
        return room2Electricity;
    }

    public void setRoom2Electricity(String room2Electricity) {
        this.room2Electricity = room2Electricity;
    }

    @Basic
    @Column(name = "room2_control")
    public String getRoom2Control() {
        return room2Control;
    }

    public void setRoom2Control(String room2Control) {
        this.room2Control = room2Control;
    }

    @Basic
    @Column(name = "room2_set_powe")
    public String getRoom2SetPowe() {
        return room2SetPowe;
    }

    public void setRoom2SetPowe(String room2SetPowe) {
        this.room2SetPowe = room2SetPowe;
    }

    @Basic
    @Column(name = "room2_violation")
    public String getRoom2Violation() {
        return room2Violation;
    }

    public void setRoom2Violation(String room2Violation) {
        this.room2Violation = room2Violation;
    }

    @Basic
    @Column(name = "room3_voltage")
    public String getRoom3Voltage() {
        return room3Voltage;
    }

    public void setRoom3Voltage(String room3Voltage) {
        this.room3Voltage = room3Voltage;
    }

    @Basic
    @Column(name = "room3_current")
    public String getRoom3Current() {
        return room3Current;
    }

    public void setRoom3Current(String room3Current) {
        this.room3Current = room3Current;
    }

    @Basic
    @Column(name = "room3_power")
    public String getRoom3Power() {
        return room3Power;
    }

    public void setRoom3Power(String room3Power) {
        this.room3Power = room3Power;
    }

    @Basic
    @Column(name = "room3_electricity")
    public String getRoom3Electricity() {
        return room3Electricity;
    }

    public void setRoom3Electricity(String room3Electricity) {
        this.room3Electricity = room3Electricity;
    }

    @Basic
    @Column(name = "room3_control")
    public String getRoom3Control() {
        return room3Control;
    }

    public void setRoom3Control(String room3Control) {
        this.room3Control = room3Control;
    }

    @Basic
    @Column(name = "room3_set_powe")
    public String getRoom3SetPowe() {
        return room3SetPowe;
    }

    public void setRoom3SetPowe(String room3SetPowe) {
        this.room3SetPowe = room3SetPowe;
    }

    @Basic
    @Column(name = "room3_violation")
    public String getRoom3Violation() {
        return room3Violation;
    }

    public void setRoom3Violation(String room3Violation) {
        this.room3Violation = room3Violation;
    }

    @Basic
    @Column(name = "room4_voltage")
    public String getRoom4Voltage() {
        return room4Voltage;
    }

    public void setRoom4Voltage(String room4Voltage) {
        this.room4Voltage = room4Voltage;
    }

    @Basic
    @Column(name = "room4_current")
    public String getRoom4Current() {
        return room4Current;
    }

    public void setRoom4Current(String room4Current) {
        this.room4Current = room4Current;
    }

    @Basic
    @Column(name = "room4_power")
    public String getRoom4Power() {
        return room4Power;
    }

    public void setRoom4Power(String room4Power) {
        this.room4Power = room4Power;
    }

    @Basic
    @Column(name = "room4_electricity")
    public String getRoom4Electricity() {
        return room4Electricity;
    }

    public void setRoom4Electricity(String room4Electricity) {
        this.room4Electricity = room4Electricity;
    }

    @Basic
    @Column(name = "room4_control")
    public String getRoom4Control() {
        return room4Control;
    }

    public void setRoom4Control(String room4Control) {
        this.room4Control = room4Control;
    }

    @Basic
    @Column(name = "room4_set_powe")
    public String getRoom4SetPowe() {
        return room4SetPowe;
    }

    public void setRoom4SetPowe(String room4SetPowe) {
        this.room4SetPowe = room4SetPowe;
    }

    @Basic
    @Column(name = "room4_violation")
    public String getRoom4Violation() {
        return room4Violation;
    }

    public void setRoom4Violation(String room4Violation) {
        this.room4Violation = room4Violation;
    }

    @Basic
    @Column(name = "room5_voltage")
    public String getRoom5Voltage() {
        return room5Voltage;
    }

    public void setRoom5Voltage(String room5Voltage) {
        this.room5Voltage = room5Voltage;
    }

    @Basic
    @Column(name = "room5_current")
    public String getRoom5Current() {
        return room5Current;
    }

    public void setRoom5Current(String room5Current) {
        this.room5Current = room5Current;
    }

    @Basic
    @Column(name = "room5_power")
    public String getRoom5Power() {
        return room5Power;
    }

    public void setRoom5Power(String room5Power) {
        this.room5Power = room5Power;
    }

    @Basic
    @Column(name = "room5_electricity")
    public String getRoom5Electricity() {
        return room5Electricity;
    }

    public void setRoom5Electricity(String room5Electricity) {
        this.room5Electricity = room5Electricity;
    }

    @Basic
    @Column(name = "room5_control")
    public String getRoom5Control() {
        return room5Control;
    }

    public void setRoom5Control(String room5Control) {
        this.room5Control = room5Control;
    }

    @Basic
    @Column(name = "room5_set_powe")
    public String getRoom5SetPowe() {
        return room5SetPowe;
    }

    public void setRoom5SetPowe(String room5SetPowe) {
        this.room5SetPowe = room5SetPowe;
    }

    @Basic
    @Column(name = "room5_violation")
    public String getRoom5Violation() {
        return room5Violation;
    }

    public void setRoom5Violation(String room5Violation) {
        this.room5Violation = room5Violation;
    }

    @Basic
    @Column(name = "room6_voltage")
    public String getRoom6Voltage() {
        return room6Voltage;
    }

    public void setRoom6Voltage(String room6Voltage) {
        this.room6Voltage = room6Voltage;
    }

    @Basic
    @Column(name = "room6_current")
    public String getRoom6Current() {
        return room6Current;
    }

    public void setRoom6Current(String room6Current) {
        this.room6Current = room6Current;
    }

    @Basic
    @Column(name = "room6_power")
    public String getRoom6Power() {
        return room6Power;
    }

    public void setRoom6Power(String room6Power) {
        this.room6Power = room6Power;
    }

    @Basic
    @Column(name = "room6_electricity")
    public String getRoom6Electricity() {
        return room6Electricity;
    }

    public void setRoom6Electricity(String room6Electricity) {
        this.room6Electricity = room6Electricity;
    }

    @Basic
    @Column(name = "room6_control")
    public String getRoom6Control() {
        return room6Control;
    }

    public void setRoom6Control(String room6Control) {
        this.room6Control = room6Control;
    }

    @Basic
    @Column(name = "room6_set_powe")
    public String getRoom6SetPowe() {
        return room6SetPowe;
    }

    public void setRoom6SetPowe(String room6SetPowe) {
        this.room6SetPowe = room6SetPowe;
    }

    @Basic
    @Column(name = "room6_violation")
    public String getRoom6Violation() {
        return room6Violation;
    }

    public void setRoom6Violation(String room6Violation) {
        this.room6Violation = room6Violation;
    }

    @Basic
    @Column(name = "room7_voltage")
    public String getRoom7Voltage() {
        return room7Voltage;
    }

    public void setRoom7Voltage(String room7Voltage) {
        this.room7Voltage = room7Voltage;
    }

    @Basic
    @Column(name = "room7_current")
    public String getRoom7Current() {
        return room7Current;
    }

    public void setRoom7Current(String room7Current) {
        this.room7Current = room7Current;
    }

    @Basic
    @Column(name = "room7_power")
    public String getRoom7Power() {
        return room7Power;
    }

    public void setRoom7Power(String room7Power) {
        this.room7Power = room7Power;
    }

    @Basic
    @Column(name = "room7_electricity")
    public String getRoom7Electricity() {
        return room7Electricity;
    }

    public void setRoom7Electricity(String room7Electricity) {
        this.room7Electricity = room7Electricity;
    }

    @Basic
    @Column(name = "room7_control")
    public String getRoom7Control() {
        return room7Control;
    }

    public void setRoom7Control(String room7Control) {
        this.room7Control = room7Control;
    }

    @Basic
    @Column(name = "room7_set_powe")
    public String getRoom7SetPowe() {
        return room7SetPowe;
    }

    public void setRoom7SetPowe(String room7SetPowe) {
        this.room7SetPowe = room7SetPowe;
    }

    @Basic
    @Column(name = "room7_violation")
    public String getRoom7Violation() {
        return room7Violation;
    }

    public void setRoom7Violation(String room7Violation) {
        this.room7Violation = room7Violation;
    }

    @Basic
    @Column(name = "room8_voltage")
    public String getRoom8Voltage() {
        return room8Voltage;
    }

    public void setRoom8Voltage(String room8Voltage) {
        this.room8Voltage = room8Voltage;
    }

    @Basic
    @Column(name = "room8_current")
    public String getRoom8Current() {
        return room8Current;
    }

    public void setRoom8Current(String room8Current) {
        this.room8Current = room8Current;
    }

    @Basic
    @Column(name = "room8_power")
    public String getRoom8Power() {
        return room8Power;
    }

    public void setRoom8Power(String room8Power) {
        this.room8Power = room8Power;
    }

    @Basic
    @Column(name = "room8_electricity")
    public String getRoom8Electricity() {
        return room8Electricity;
    }

    public void setRoom8Electricity(String room8Electricity) {
        this.room8Electricity = room8Electricity;
    }

    @Basic
    @Column(name = "room8_control")
    public String getRoom8Control() {
        return room8Control;
    }

    public void setRoom8Control(String room8Control) {
        this.room8Control = room8Control;
    }

    @Basic
    @Column(name = "room8_set_powe")
    public String getRoom8SetPowe() {
        return room8SetPowe;
    }

    public void setRoom8SetPowe(String room8SetPowe) {
        this.room8SetPowe = room8SetPowe;
    }

    @Basic
    @Column(name = "room8_violation")
    public String getRoom8Violation() {
        return room8Violation;
    }

    public void setRoom8Violation(String room8Violation) {
        this.room8Violation = room8Violation;
    }

    @Basic
    @Column(name = "room9_voltage")
    public String getRoom9Voltage() {
        return room9Voltage;
    }

    public void setRoom9Voltage(String room9Voltage) {
        this.room9Voltage = room9Voltage;
    }

    @Basic
    @Column(name = "room9_current")
    public String getRoom9Current() {
        return room9Current;
    }

    public void setRoom9Current(String room9Current) {
        this.room9Current = room9Current;
    }

    @Basic
    @Column(name = "room9_power")
    public String getRoom9Power() {
        return room9Power;
    }

    public void setRoom9Power(String room9Power) {
        this.room9Power = room9Power;
    }

    @Basic
    @Column(name = "room9_electricity")
    public String getRoom9Electricity() {
        return room9Electricity;
    }

    public void setRoom9Electricity(String room9Electricity) {
        this.room9Electricity = room9Electricity;
    }

    @Basic
    @Column(name = "room9_control")
    public String getRoom9Control() {
        return room9Control;
    }

    public void setRoom9Control(String room9Control) {
        this.room9Control = room9Control;
    }

    @Basic
    @Column(name = "room9_set_powe")
    public String getRoom9SetPowe() {
        return room9SetPowe;
    }

    public void setRoom9SetPowe(String room9SetPowe) {
        this.room9SetPowe = room9SetPowe;
    }

    @Basic
    @Column(name = "room9_violation")
    public String getRoom9Violation() {
        return room9Violation;
    }

    public void setRoom9Violation(String room9Violation) {
        this.room9Violation = room9Violation;
    }

    @Basic
    @Column(name = "room10_voltage")
    public String getRoom10Voltage() {
        return room10Voltage;
    }

    public void setRoom10Voltage(String room10Voltage) {
        this.room10Voltage = room10Voltage;
    }

    @Basic
    @Column(name = "room10_current")
    public String getRoom10Current() {
        return room10Current;
    }

    public void setRoom10Current(String room10Current) {
        this.room10Current = room10Current;
    }

    @Basic
    @Column(name = "room10_power")
    public String getRoom10Power() {
        return room10Power;
    }

    public void setRoom10Power(String room10Power) {
        this.room10Power = room10Power;
    }

    @Basic
    @Column(name = "room10_electricity")
    public String getRoom10Electricity() {
        return room10Electricity;
    }

    public void setRoom10Electricity(String room10Electricity) {
        this.room10Electricity = room10Electricity;
    }

    @Basic
    @Column(name = "room10_control")
    public String getRoom10Control() {
        return room10Control;
    }

    public void setRoom10Control(String room10Control) {
        this.room10Control = room10Control;
    }

    @Basic
    @Column(name = "room10_set_powe")
    public String getRoom10SetPowe() {
        return room10SetPowe;
    }

    public void setRoom10SetPowe(String room10SetPowe) {
        this.room10SetPowe = room10SetPowe;
    }

    @Basic
    @Column(name = "room10_violation")
    public String getRoom10Violation() {
        return room10Violation;
    }

    public void setRoom10Violation(String room10Violation) {
        this.room10Violation = room10Violation;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DataElectricityEntity that = (DataElectricityEntity) o;

        if (id != that.id) return false;
        if (createdAt != that.createdAt) return false;
        if (mac != null ? !mac.equals(that.mac) : that.mac != null) return false;
        if (siteMaintenance != null ? !siteMaintenance.equals(that.siteMaintenance) : that.siteMaintenance != null)
            return false;
        if (switchRecoveryTime != null ? !switchRecoveryTime.equals(that.switchRecoveryTime) : that.switchRecoveryTime != null)
            return false;
        if (room1Voltage != null ? !room1Voltage.equals(that.room1Voltage) : that.room1Voltage != null) return false;
        if (room1Current != null ? !room1Current.equals(that.room1Current) : that.room1Current != null) return false;
        if (room1Power != null ? !room1Power.equals(that.room1Power) : that.room1Power != null) return false;
        if (room1Electricity != null ? !room1Electricity.equals(that.room1Electricity) : that.room1Electricity != null)
            return false;
        if (room1Control != null ? !room1Control.equals(that.room1Control) : that.room1Control != null) return false;
        if (room1SetPowe != null ? !room1SetPowe.equals(that.room1SetPowe) : that.room1SetPowe != null) return false;
        if (room1Violation != null ? !room1Violation.equals(that.room1Violation) : that.room1Violation != null)
            return false;
        if (room2Voltage != null ? !room2Voltage.equals(that.room2Voltage) : that.room2Voltage != null) return false;
        if (room2Current != null ? !room2Current.equals(that.room2Current) : that.room2Current != null) return false;
        if (room2Power != null ? !room2Power.equals(that.room2Power) : that.room2Power != null) return false;
        if (room2Electricity != null ? !room2Electricity.equals(that.room2Electricity) : that.room2Electricity != null)
            return false;
        if (room2Control != null ? !room2Control.equals(that.room2Control) : that.room2Control != null) return false;
        if (room2SetPowe != null ? !room2SetPowe.equals(that.room2SetPowe) : that.room2SetPowe != null) return false;
        if (room2Violation != null ? !room2Violation.equals(that.room2Violation) : that.room2Violation != null)
            return false;
        if (room3Voltage != null ? !room3Voltage.equals(that.room3Voltage) : that.room3Voltage != null) return false;
        if (room3Current != null ? !room3Current.equals(that.room3Current) : that.room3Current != null) return false;
        if (room3Power != null ? !room3Power.equals(that.room3Power) : that.room3Power != null) return false;
        if (room3Electricity != null ? !room3Electricity.equals(that.room3Electricity) : that.room3Electricity != null)
            return false;
        if (room3Control != null ? !room3Control.equals(that.room3Control) : that.room3Control != null) return false;
        if (room3SetPowe != null ? !room3SetPowe.equals(that.room3SetPowe) : that.room3SetPowe != null) return false;
        if (room3Violation != null ? !room3Violation.equals(that.room3Violation) : that.room3Violation != null)
            return false;
        if (room4Voltage != null ? !room4Voltage.equals(that.room4Voltage) : that.room4Voltage != null) return false;
        if (room4Current != null ? !room4Current.equals(that.room4Current) : that.room4Current != null) return false;
        if (room4Power != null ? !room4Power.equals(that.room4Power) : that.room4Power != null) return false;
        if (room4Electricity != null ? !room4Electricity.equals(that.room4Electricity) : that.room4Electricity != null)
            return false;
        if (room4Control != null ? !room4Control.equals(that.room4Control) : that.room4Control != null) return false;
        if (room4SetPowe != null ? !room4SetPowe.equals(that.room4SetPowe) : that.room4SetPowe != null) return false;
        if (room4Violation != null ? !room4Violation.equals(that.room4Violation) : that.room4Violation != null)
            return false;
        if (room5Voltage != null ? !room5Voltage.equals(that.room5Voltage) : that.room5Voltage != null) return false;
        if (room5Current != null ? !room5Current.equals(that.room5Current) : that.room5Current != null) return false;
        if (room5Power != null ? !room5Power.equals(that.room5Power) : that.room5Power != null) return false;
        if (room5Electricity != null ? !room5Electricity.equals(that.room5Electricity) : that.room5Electricity != null)
            return false;
        if (room5Control != null ? !room5Control.equals(that.room5Control) : that.room5Control != null) return false;
        if (room5SetPowe != null ? !room5SetPowe.equals(that.room5SetPowe) : that.room5SetPowe != null) return false;
        if (room5Violation != null ? !room5Violation.equals(that.room5Violation) : that.room5Violation != null)
            return false;
        if (room6Voltage != null ? !room6Voltage.equals(that.room6Voltage) : that.room6Voltage != null) return false;
        if (room6Current != null ? !room6Current.equals(that.room6Current) : that.room6Current != null) return false;
        if (room6Power != null ? !room6Power.equals(that.room6Power) : that.room6Power != null) return false;
        if (room6Electricity != null ? !room6Electricity.equals(that.room6Electricity) : that.room6Electricity != null)
            return false;
        if (room6Control != null ? !room6Control.equals(that.room6Control) : that.room6Control != null) return false;
        if (room6SetPowe != null ? !room6SetPowe.equals(that.room6SetPowe) : that.room6SetPowe != null) return false;
        if (room6Violation != null ? !room6Violation.equals(that.room6Violation) : that.room6Violation != null)
            return false;
        if (room7Voltage != null ? !room7Voltage.equals(that.room7Voltage) : that.room7Voltage != null) return false;
        if (room7Current != null ? !room7Current.equals(that.room7Current) : that.room7Current != null) return false;
        if (room7Power != null ? !room7Power.equals(that.room7Power) : that.room7Power != null) return false;
        if (room7Electricity != null ? !room7Electricity.equals(that.room7Electricity) : that.room7Electricity != null)
            return false;
        if (room7Control != null ? !room7Control.equals(that.room7Control) : that.room7Control != null) return false;
        if (room7SetPowe != null ? !room7SetPowe.equals(that.room7SetPowe) : that.room7SetPowe != null) return false;
        if (room7Violation != null ? !room7Violation.equals(that.room7Violation) : that.room7Violation != null)
            return false;
        if (room8Voltage != null ? !room8Voltage.equals(that.room8Voltage) : that.room8Voltage != null) return false;
        if (room8Current != null ? !room8Current.equals(that.room8Current) : that.room8Current != null) return false;
        if (room8Power != null ? !room8Power.equals(that.room8Power) : that.room8Power != null) return false;
        if (room8Electricity != null ? !room8Electricity.equals(that.room8Electricity) : that.room8Electricity != null)
            return false;
        if (room8Control != null ? !room8Control.equals(that.room8Control) : that.room8Control != null) return false;
        if (room8SetPowe != null ? !room8SetPowe.equals(that.room8SetPowe) : that.room8SetPowe != null) return false;
        if (room8Violation != null ? !room8Violation.equals(that.room8Violation) : that.room8Violation != null)
            return false;
        if (room9Voltage != null ? !room9Voltage.equals(that.room9Voltage) : that.room9Voltage != null) return false;
        if (room9Current != null ? !room9Current.equals(that.room9Current) : that.room9Current != null) return false;
        if (room9Power != null ? !room9Power.equals(that.room9Power) : that.room9Power != null) return false;
        if (room9Electricity != null ? !room9Electricity.equals(that.room9Electricity) : that.room9Electricity != null)
            return false;
        if (room9Control != null ? !room9Control.equals(that.room9Control) : that.room9Control != null) return false;
        if (room9SetPowe != null ? !room9SetPowe.equals(that.room9SetPowe) : that.room9SetPowe != null) return false;
        if (room9Violation != null ? !room9Violation.equals(that.room9Violation) : that.room9Violation != null)
            return false;
        if (room10Voltage != null ? !room10Voltage.equals(that.room10Voltage) : that.room10Voltage != null)
            return false;
        if (room10Current != null ? !room10Current.equals(that.room10Current) : that.room10Current != null)
            return false;
        if (room10Power != null ? !room10Power.equals(that.room10Power) : that.room10Power != null) return false;
        if (room10Electricity != null ? !room10Electricity.equals(that.room10Electricity) : that.room10Electricity != null)
            return false;
        if (room10Control != null ? !room10Control.equals(that.room10Control) : that.room10Control != null)
            return false;
        if (room10SetPowe != null ? !room10SetPowe.equals(that.room10SetPowe) : that.room10SetPowe != null)
            return false;
        if (room10Violation != null ? !room10Violation.equals(that.room10Violation) : that.room10Violation != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (int) (createdAt ^ (createdAt >>> 32));
        result = 31 * result + (mac != null ? mac.hashCode() : 0);
        result = 31 * result + (siteMaintenance != null ? siteMaintenance.hashCode() : 0);
        result = 31 * result + (switchRecoveryTime != null ? switchRecoveryTime.hashCode() : 0);
        result = 31 * result + (room1Voltage != null ? room1Voltage.hashCode() : 0);
        result = 31 * result + (room1Current != null ? room1Current.hashCode() : 0);
        result = 31 * result + (room1Power != null ? room1Power.hashCode() : 0);
        result = 31 * result + (room1Electricity != null ? room1Electricity.hashCode() : 0);
        result = 31 * result + (room1Control != null ? room1Control.hashCode() : 0);
        result = 31 * result + (room1SetPowe != null ? room1SetPowe.hashCode() : 0);
        result = 31 * result + (room1Violation != null ? room1Violation.hashCode() : 0);
        result = 31 * result + (room2Voltage != null ? room2Voltage.hashCode() : 0);
        result = 31 * result + (room2Current != null ? room2Current.hashCode() : 0);
        result = 31 * result + (room2Power != null ? room2Power.hashCode() : 0);
        result = 31 * result + (room2Electricity != null ? room2Electricity.hashCode() : 0);
        result = 31 * result + (room2Control != null ? room2Control.hashCode() : 0);
        result = 31 * result + (room2SetPowe != null ? room2SetPowe.hashCode() : 0);
        result = 31 * result + (room2Violation != null ? room2Violation.hashCode() : 0);
        result = 31 * result + (room3Voltage != null ? room3Voltage.hashCode() : 0);
        result = 31 * result + (room3Current != null ? room3Current.hashCode() : 0);
        result = 31 * result + (room3Power != null ? room3Power.hashCode() : 0);
        result = 31 * result + (room3Electricity != null ? room3Electricity.hashCode() : 0);
        result = 31 * result + (room3Control != null ? room3Control.hashCode() : 0);
        result = 31 * result + (room3SetPowe != null ? room3SetPowe.hashCode() : 0);
        result = 31 * result + (room3Violation != null ? room3Violation.hashCode() : 0);
        result = 31 * result + (room4Voltage != null ? room4Voltage.hashCode() : 0);
        result = 31 * result + (room4Current != null ? room4Current.hashCode() : 0);
        result = 31 * result + (room4Power != null ? room4Power.hashCode() : 0);
        result = 31 * result + (room4Electricity != null ? room4Electricity.hashCode() : 0);
        result = 31 * result + (room4Control != null ? room4Control.hashCode() : 0);
        result = 31 * result + (room4SetPowe != null ? room4SetPowe.hashCode() : 0);
        result = 31 * result + (room4Violation != null ? room4Violation.hashCode() : 0);
        result = 31 * result + (room5Voltage != null ? room5Voltage.hashCode() : 0);
        result = 31 * result + (room5Current != null ? room5Current.hashCode() : 0);
        result = 31 * result + (room5Power != null ? room5Power.hashCode() : 0);
        result = 31 * result + (room5Electricity != null ? room5Electricity.hashCode() : 0);
        result = 31 * result + (room5Control != null ? room5Control.hashCode() : 0);
        result = 31 * result + (room5SetPowe != null ? room5SetPowe.hashCode() : 0);
        result = 31 * result + (room5Violation != null ? room5Violation.hashCode() : 0);
        result = 31 * result + (room6Voltage != null ? room6Voltage.hashCode() : 0);
        result = 31 * result + (room6Current != null ? room6Current.hashCode() : 0);
        result = 31 * result + (room6Power != null ? room6Power.hashCode() : 0);
        result = 31 * result + (room6Electricity != null ? room6Electricity.hashCode() : 0);
        result = 31 * result + (room6Control != null ? room6Control.hashCode() : 0);
        result = 31 * result + (room6SetPowe != null ? room6SetPowe.hashCode() : 0);
        result = 31 * result + (room6Violation != null ? room6Violation.hashCode() : 0);
        result = 31 * result + (room7Voltage != null ? room7Voltage.hashCode() : 0);
        result = 31 * result + (room7Current != null ? room7Current.hashCode() : 0);
        result = 31 * result + (room7Power != null ? room7Power.hashCode() : 0);
        result = 31 * result + (room7Electricity != null ? room7Electricity.hashCode() : 0);
        result = 31 * result + (room7Control != null ? room7Control.hashCode() : 0);
        result = 31 * result + (room7SetPowe != null ? room7SetPowe.hashCode() : 0);
        result = 31 * result + (room7Violation != null ? room7Violation.hashCode() : 0);
        result = 31 * result + (room8Voltage != null ? room8Voltage.hashCode() : 0);
        result = 31 * result + (room8Current != null ? room8Current.hashCode() : 0);
        result = 31 * result + (room8Power != null ? room8Power.hashCode() : 0);
        result = 31 * result + (room8Electricity != null ? room8Electricity.hashCode() : 0);
        result = 31 * result + (room8Control != null ? room8Control.hashCode() : 0);
        result = 31 * result + (room8SetPowe != null ? room8SetPowe.hashCode() : 0);
        result = 31 * result + (room8Violation != null ? room8Violation.hashCode() : 0);
        result = 31 * result + (room9Voltage != null ? room9Voltage.hashCode() : 0);
        result = 31 * result + (room9Current != null ? room9Current.hashCode() : 0);
        result = 31 * result + (room9Power != null ? room9Power.hashCode() : 0);
        result = 31 * result + (room9Electricity != null ? room9Electricity.hashCode() : 0);
        result = 31 * result + (room9Control != null ? room9Control.hashCode() : 0);
        result = 31 * result + (room9SetPowe != null ? room9SetPowe.hashCode() : 0);
        result = 31 * result + (room9Violation != null ? room9Violation.hashCode() : 0);
        result = 31 * result + (room10Voltage != null ? room10Voltage.hashCode() : 0);
        result = 31 * result + (room10Current != null ? room10Current.hashCode() : 0);
        result = 31 * result + (room10Power != null ? room10Power.hashCode() : 0);
        result = 31 * result + (room10Electricity != null ? room10Electricity.hashCode() : 0);
        result = 31 * result + (room10Control != null ? room10Control.hashCode() : 0);
        result = 31 * result + (room10SetPowe != null ? room10SetPowe.hashCode() : 0);
        result = 31 * result + (room10Violation != null ? room10Violation.hashCode() : 0);
        return result;
    }
}
